﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK_WMS.Model.DTO
{
    public class TInventoryDto
    {
        public int Id { get; set; }
        /// <summary>
        /// 垛条码
        /// </summary>
        public string PalletBarcode { get; set; }
        /// <summary>
        /// 货位名称
        /// </summary>
        public string LocationName { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// 可用库存数量
        /// </summary>
        public decimal? AvailableQty { get; set; }
        /// <summary>
        /// 库存状态：1-正常库存；2-转移中的库存；3-入库在途；4-出库在途；5-限制使用的库存;6-异常库存;7-预分配库存;8-冻结库存
        /// </summary>
        public string? StatusVal { get; set; }
        /// <summary>
        /// 物料编号
        /// </summary>
        public string MaterialCode { get; set; }
        /// <summary>
        /// 总价
        /// </summary>
        public decimal? TotalPrice { get; set; }
        /// <summary>
        /// 单价
        /// </summary>
        public decimal? Price { get; set; }
        /// <summary>
        /// 物料批次号
        /// </summary>
        public string BatchNo { get; set; }
        /// <summary>
        /// 小批次号
        /// </summary>
        public string SmallBatchNo { get; set; }
        /// <summary>
        /// 物料批次说明
        /// </summary>
        //public string? BatchNoExplain { get; set; }
        /// <summary>
        /// 货位编码
        /// </summary>
        public string LocationCode { get; set; }
        /// <summary>
        /// ERP货位编码
        /// </summary>
        public string ErplocationCode { get; set; }
        /// <summary>
        /// 货主
        /// </summary>
        public string OwnerName { get; set; }
        /// <summary>
        /// 库区名称
        /// </summary>
        public string AreaName { get; set; }
        /// <summary>
        /// 供应商
        /// </summary>
        public string SupplierName { get; set; }
        /// <summary>
        /// 有效时间
        /// </summary>
        public DateTime? ExpireDate { get; set; }
        /// <summary>
        /// 生产日期
        /// </summary>
        public DateTime? ProductDate { get; set; }
        /// <summary>
        /// 总重量
        /// </summary>
        public decimal? TotalWeight { get; set; }
        /// <summary>
        /// 是否预警
        /// </summary>
        public bool IsWarning { get; set; }

        /// <summary>
        /// 库存明细集合
        /// </summary>
        //public List<InventoryDetailDto> InventoryDetailDtos { get; set; }
        public string WhetherQualified { get; set; }
    }
    public class InventoryDetailDto
    {
        /// <summary>
        /// 包装条码
        /// </summary>
        public string PackageBarcode { get; set; }
        /// <summary>
        /// 货品条码
        /// </summary>
        public string Barcode { get; set; }
        /// <summary>
        /// 货品数量
        /// </summary>
        public decimal? SkuNum { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateDate { get; set; }
    }
}
